@import "reset.less";
@import "page_loading.less";

@fontSize: 14px;
@borderColor: #ddd;
@black: #4b4e53;
.cf(){
    &:before, &:after{
        content: "\200B";
        display: block;
        height: 0;
        clear: both;
    }
}

::-webkit-scrollbar {width: 10px;height: 12px;}
::-webkit-scrollbar-track {margin: 2px;border-radius: 6px;background-color: rgba(180,180,180,.65);}
::-webkit-scrollbar-thumb {border-radius: 6px;background-color: rgba(0,0,0,.25);box-shadow: 0 0 4px #fff inset;}

/* ele */
a,button { cursor: pointer; }
input:not([type=radio],[type=checkbox]), textarea{ appearance: none; }
textarea { resize: none; }
// a {text-decoration: none;color: #59f;}
a:hover {text-decoration: underline;}
body,input,textarea,button {
    font-family: "PingFang SC","Lantinghei SC","Helvetica Neue","Helvetica","Arial","Microsoft YaHei","\\5FAE\8F6F\96C5\9ED1","STHeitiSC-Light","simsun","\\5B8B\4F53,WenQuanYi Zen Hei","WenQuanYi Micro Hei","sans-serif";
    font-size: @fontSize;
    -webkit-font-smoothing: antialiased;
}
hr {
    border: none;
    border-top: 1px solid @borderColor;
    margin: 15px 0;
}
input,textarea,button {
    &:focus { outline: 0; }
}
.rel {position: relative;}
.abs {position: absolute;}
.fl {float: left;}
.fr {float: right;}
.ml-10 {margin-left: 10px;}
.ml-40 {margin-left: 40px;}
.i-b {display: inline-block;}
.tcenter {text-align: center;}
.cf { .cf; }

/* base */
html {height: 100%;font-size:100px;}
body {
    min-height: 100%;
    position: relative;
    color: @black;
    box-sizing: border-box;
}
.xcon {
    font-size: 1em;
    font-weight: normal;
}

// layout
.container {
    .cf;
    margin: 0 60px;
    position: relative;
}
.body {
    .cf;
    padding: 40px 60px;
}
.v-section + .v-section {
    margin-top: 20px;
}
.h-section + .h-section {
    margin-left: 20px;
}

// flex
.flex,.flex-vertical {
    display: flex;
    align-items: stretch;
}
.flex-vertical { flex-direction: column; }
.flex-start { align-items: flex-start; }
.flex-middle { align-items: center; }
.flex-end { align-items: flex-end; }
.flex-justify { justify-content: space-between; }
.flex-around { justify-content: space-around; }
.flex-center { justify-content: center; }
.flex-item { flex: 0 0 auto; }
.flex-item-auto { flex: auto; }
.flex-item-1 { flex: 1; }
.flex-item-2 { flex: 2; }

// caret
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border: 5px solid transparent;
    border-top: 8px solid;
    border-bottom: 2px;
}

// form
.form-group {
    // display: flex;
    position: relative;
}
.form-label {
    margin: 15px 0 5px;
    line-height: 15px;
    display: inline-block;
}
.form-control {
    flex: 1;
    display: block;
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 24px;
    background-color: #fff;
    border: 1px solid #ddd;
    &:hover {
        border-color: #c4c4c4;
    }
}
.btn {
    line-height: 40px;
    padding: 0 20px;
    border: none;
    text-align: center;
    &:hover {
        text-decoration: none;
    }
}
.btn-default {
    line-height: 38px;
    border: 1px solid #ddd;
    background-color: #fff;
    &:hover {
        background-color: #f5f5f5;
    }
}
.btn-primary {
    color: #fff;
    background-color: #48f;
    &:hover {
        background-color: #27f;
    }
}

// fade
.fade{transition: all .4s ease;}

// modal
.modal {
    position: fixed;
    padding: 50px 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
    background-color: rgba(0, 0, 0, .7);
    overflow: auto;

    &.modal-middle {
        display: flex;
    }
}
.modal-opened {
    overflow: hidden;
}
.modal-dialog {
    position: relative;
    width: 500px;
    padding: 10px 30px;
    margin: auto;
    background-color: #fff;
}
.modal-header {
    padding: 20px 0;
    border-bottom: 1px dashed @borderColor;
    font-size: 22px;
    line-height: 1;
    text-align: center;
    color: @black;
}
.modal-body {
    padding: 20px 0;

    form.modal-dialog & {
        padding-top: 10px;
    }
}
.modal-footer {
    padding: 20px 0;
    border-top: 1px dashed @borderColor;
    display: flex;
    justify-content: space-between;
}

// popper
.popper {
    max-width: 600px;
    line-height: 24px;
    padding: 20px 40px;
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 16px;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, .7);
    z-index: 10010;
    transform: translate(-50%, 50%);
    opacity: 0;
    &.active{transform: translate(-50%, -50%);opacity: 1;}
}
.popper-icon {
    display: block;
    margin: 0 auto 16px;
}
